﻿using System;
using System.Globalization;
using System.Linq;
using System.Web.UI.WebControls;
using WSTester.DataModel;

namespace WSTester.AdminPanel
{
    public partial class RunTests : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            using (WSTesterEntities wsEntries = new WSTesterEntities())
            {
            TestView[] tests = wsEntries.TestView.ToArray();
                foreach (var test in tests)
                    this.TestCheckList.Items.Add(new ListItem(test.Name, test.Id.ToString(CultureInfo.InvariantCulture)));
            }
        }
    }
}